<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="/static/qywx/js/vue.min.js"></script>
<!--<template>-->
    <div>
    </div>
<!--</template>-->
<script>
    new Vue({
        el: '#intro',
        props: {
        },
        mounted() {
            let query = this.$route.query

            let protocol = window.location.protocol
            let host = window.location.host
            let targetOrigin = protocol + '//' + host
            // send msg to parent page
            let msg = { qywxCode: query.code, type: 'QYWX_MODAL_LOGIN_REDIRECT' }
            window.parent.postMessage(msg, targetOrigin)
        },
        data() {
            return {
            }
        },
        methods: {
        },
    });
</script>
</body>
</html>